package com.ruoyi.system.service.project.impl;

import java.util.List;

import com.ruoyi.system.domain.project.patent.PatentTeacher;
import com.ruoyi.system.mapper.project.PatentTeacherMapper;
import com.ruoyi.system.service.project.IPatentTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 专利教师Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-31
 */
@Service
public class PatentTeacherServiceImpl implements IPatentTeacherService
{
    @Autowired
    private PatentTeacherMapper patentTeacherMapper;

    /**
     * 查询专利教师
     * 
     * @param id 专利教师主键
     * @return 专利教师
     */
    @Override
    public PatentTeacher selectPatentTeacherById(Long id)
    {
        return patentTeacherMapper.selectPatentTeacherById(id);
    }

    /**
     * 查询专利教师列表
     * 
     * @param patentTeacher 专利教师
     * @return 专利教师
     */
    @Override
    public List<PatentTeacher> selectPatentTeacherList(PatentTeacher patentTeacher)
    {
        return patentTeacherMapper.selectPatentTeacherList(patentTeacher);
    }

    /**
     * 新增专利教师
     * 
     * @param patentTeacher 专利教师
     * @return 结果
     */
    @Override
    public int insertPatentTeacher(PatentTeacher patentTeacher)
    {
        return patentTeacherMapper.insertPatentTeacher(patentTeacher);
    }

    /**
     * 修改专利教师
     * 
     * @param patentTeacher 专利教师
     * @return 结果
     */
    @Override
    public int updatePatentTeacher(PatentTeacher patentTeacher)
    {
        return patentTeacherMapper.updatePatentTeacher(patentTeacher);
    }

    /**
     * 批量删除专利教师
     * 
     * @param ids 需要删除的专利教师主键
     * @return 结果
     */
    @Override
    public int deletePatentTeacherByIds(Long[] ids)
    {
        return patentTeacherMapper.deletePatentTeacherByIds(ids);
    }

    /**
     * 删除专利教师信息
     * 
     * @param id 专利教师主键
     * @return 结果
     */
    @Override
    public int deletePatentTeacherById(Long id)
    {
        return patentTeacherMapper.deletePatentTeacherById(id);
    }
}
